package com.amado.course0602doWhile;

public class DoWhile {
	public static void main(String[] args) {
		// while:先判断while条件，如果为true再执while中的语句
		int i = 1;
		while (i < 1) {
			System.out.print("i =" + i);
		}
		int j = 1;
		System.out.println();
		// do while:先执行do中的语句,再判断是否满足while中的条件,如果为true再执行do中的语句
		do {
			System.out.print("j = " + j);
		} while (j < 1);
	}
}
